home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3442 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  4.7 KB

  1. Path: news.iconn.net!news
  2. From: thecrow@iconn.net (The Crow)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: can you help me learn programming ?
  5. Date: 24 Jan 1996 03:36:13 GMT
  6. Organization: I rule the world
  7. Message-ID: <4e49fe$qks@news.iconn.net>
  8. References: <sg19-2101960200070001@128.253.183.75>
  9. NNTP-Posting-Host: st-ts00-01.iconn.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.6
  13.  
  14. In article <sg19-2101960200070001@128.253.183.75>, sg19@cornell.eduW says...
  15. >
  16. >Hi,
  17. >I know nothing about computer programming but I am eager to learn.
  18. >
  19. >Can any kind soul suggest to me any good, comprehensive book (but for
  20. >absolute beginners) to learn how to programme in Visual Basic 4.0 (to move
  21. >onto Windows 95 programming) and Visual C/C ++ that include CD-Roms for
  22. >online help and such?
  23. >
  24. >Also, can anyone suggest to me a good, comprehensive Dictionary about
  25. >programming languages words, idioms, symbols and a good computer games
  26. >programming guide ?
  27. >
  28. >Please, give help besides and beyond the "for dummies" series, I am
  29. >serious about this.
  30. >If you wanna help, go ahead and you're very welcome, otherwise, never mind.
  31. >
  32. >Please, e-mail to  
  33. >
  34. >sg19@cornell.edu    (I do not browse this group, generally)
  35. >
  36. >Thanks a lot,
  37. >
  38. >Silvana
  39. First of all, you need to analyze what you would like to accomplish as a 
  40. programmer. If you just want to do it recreationaly, then VB is all you need or 
  41. will want. C/C++  is very difficult to learn, and should only be attempted if 
  42. you are going to be doing anything that will need it, and or you feel like 
  43. spending all-nighters dealing with the language. (number crunching generally 
  44. brings VB to its knees, while C/C++ does it better than almost anything) C/C++ 
  45. is also very very cryptic. It can scare you a first. If you want to take the 
  46. middle ground, go for Pascal (Turbo Pascal is also great), it is also VERY 
  47. powerful and a litte more intuitive.
  48.  
  49. If you plan to learn C/C++, do NOT start with windows. Get Turbo C++ for DOS, 
  50. it is THE best environment to learn on. It is very powerful, very easy, very 
  51. cheap, and has help files for everything.
  52.  
  53. As far as books that start general Teach Yourself C++ in 21 days has gotten 
  54. good reviews. A very general summary of computer languages.
  55.  
  56. Everything comes down to variables, and functions.
  57.  
  58. variables STORE values in memory. You can then manipulate them the same way you 
  59. would with a calculator.
  60.  
  61. a = 2;
  62. b = 2;
  63.  
  64. c = a + b;
  65.  
  66. c is going to be 4.  In any good programming language, you should DECLARE every 
  67. variable.  This tells the computer how big or small the values you will be 
  68. storing are, or what type of value they are.  If the value is going to be no 
  69. bigger then say, 100, it would be silly to make the computer use up lots of 
  70. memory (and also slowing things down) trying to make that variable be able to 
  71. store very large numbers. The above example, would make a,b,c BYTE values.  A 
  72. byte value (also called CHAR) can be from 0 to 255, this is one BYTE of 
  73. computer memory. These following are common variable types
  74.  
  75. byte/char    0 to 255
  76. integer        -3200 to 32000
  77. long integer    billions
  78. real        this can hold decimal places, the others have to be integers
  79.  
  80. functions are the next basic idea, say you want to add a + b and then do a lot 
  81. of other things with them OVER and OVER and OVER in you program. Rather than 
  82. type your whole algorithm (set of commands) you make a function. You give the 
  83. function a name, and then stick whatever code inside of it you want. To execute 
  84. all of that code, just use the name of the function to CALL it.
  85.  
  86. all the confusing commands you will see in programming are functions built into 
  87. your compiler. All you need do is look them up in the help file to see what 
  88. they do and how to use them (well...ok, you have to do some trial and error 
  89. too) in C++ one function is called COUT
  90.  
  91. cout << "Hello World";
  92.  
  93. calls a function that reads in the "Hello World" and sends it to the screen.  
  94. That way you dont have to do the work. The only other basic idea you need to 
  95. know is loops. basically a loop will execute the code inside it over and over 
  96. until a certain thing happens. say you want to add A and B until they are equal 
  97. to 150, you make a loop and tell it to keep going until A + B = 150  the real 
  98. trick in programming, to do it well, is to understand math concepts, and be 
  99. able to visualize how your code works (it will get very very big at times) you 
  100. dont have to be able to calculate numbers in your head, but you DO need to know 
  101. what is going on, so you dont do it some stupid slow way. When you start, put 
  102. the compiler on the slowest computer you can find, it will force you to use 
  103. good habits.
  104.  
  105. if you get stuck just grab your local computer genius
  106.  
  107.  
  108.  
  109.  
  110.  
  111. -- 
  112. The Crow - thecrow@iconn.net
  113. "It can't rain all the time"
  114. -Kryptology
  115.  
  116.